﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping assembly="Sirocco" namespace="Sirocco.Data.Entity" xmlns="urn:nhibernate-mapping-2.2" default-lazy="false">
  <class name="Contact" table="Contact">
    <id name="Id" type="long" column="Id" unsaved-value="-1">
      <generator class="hilo" >
        <param name="table">HiloContact</param>
        <param name="column">next_hi</param>
        <param name="max_lo">10000000</param>
      </generator>
    </id>
    <property name="Salutation" column="Salutation" not-null="true" type="System.String" length="10" insert="true" update="true" />
    <property name="FirstName" column="FirstName" not-null="true" type="System.String" length="60" insert="true" update="true" />
    <property name="LastName" column="LastName" not-null="true" type="System.String" length="60" insert="true" update="true" />
    <property name="Address" column="Address" not-null="true" type="System.String" length="50" insert="true" update="true" />
    <property name="Suffix" column="Suffix" not-null="true" type="System.String" length="10" insert="true" update="true" />
    <property name="Gender" column="Gender" not-null="true" type="Gender" length="1" insert="true" update="true" />
    <property name="DateOfBirth" column ="DateOfBirth" not-null="true" type="DateTime" insert="true" update="true" />
  </class>
</hibernate-mapping>